/**
 *我的页面
 */
import React, {Component} from 'react';
import {View, StyleSheet, ScrollView, Image} from  'react-native';
import MineCommonCell from './MineCommonCell';
import MineMiddleView from './MineMiddleView';
import MineHeaderView from './MineHeaderView';
let draft = require('../../img/draft.png');
let hot = require('../../img/icon_hot.png');
let card = require('../../img/card.png');
let like = require('../../img/like.png');
let friend = require('../../img/new_friend.png');
let pay = require('../../img/pay.png');
let collect = require('../../img/collect.png');


let payment_card = require('../../img/free/payment_card.png');
let basket = require('../../img/free/basket.png');
let invoice = require('../../img/free/invoice.png');
let premium = require('../../img/free/premium.png');
let refresh = require('../../img/free/refresh.png');
let shipping = require('../../img/free/shipping.png');
let sitemap = require('../../img/free/sitemap.png');
let user = require('../../img/free/user.png');
let flag = require('../../img/free/flag.png');
let donate = require('../../img/free/donate.png');

export default class Mine extends Component {
    render() {
        return (
            <ScrollView
                style={styles.scrollViewStyle}
                contentInset={{top: -200}}
                contentOffset={{y:200}}
            >
                <MineHeaderView/>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={collect}
                        leftTitle='我的订单'
                        rightTitle='查看全部订单'
                    />
                    <MineMiddleView/>
                </View>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={draft}
                        leftTitle='我的钱包'
                        rightTitle='账户余额:￥100'
                    />
                    <MineCommonCell
                        leftImage={payment_card}
                        leftTitle='我的会员卡'
                    />
                    <MineCommonCell
                        leftImage={basket}
                        leftTitle='我的积分'
                    />
                    <MineCommonCell
                        leftImage={like}
                        leftTitle='优惠券'
                        rightTitle='一张'
                    />
                    <MineCommonCell
                        leftImage={invoice}
                        leftTitle='优惠码'
                    />
                    <MineCommonCell
                        leftImage={premium}
                        leftTitle='我的返现'
                        rightTitle='10块'
                    />
                    <MineCommonCell
                        leftImage={shipping}
                        leftTitle='我的赠品'
                    />
                </View>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={card}
                        leftTitle='积分商城'
                    />

                </View>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={friend}
                        leftTitle='今日推荐'
                        rightImage={hot}
                    />
                </View>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={sitemap}
                        leftTitle='酒掌柜入口'
                    />
                    <MineCommonCell
                        leftImage={user}
                        leftTitle='销售员中心'
                    />
                </View>
                <View style={{marginTop:20}}>
                    <MineCommonCell
                        leftImage={flag}
                        leftTitle='我要加盟'
                        rightTitle='加盟Call酒么'
                    />
                    <MineCommonCell
                        leftImage={donate}
                        leftTitle='我要合作'
                        rightTitle='商家合作'
                    />
                </View>
            </ScrollView>
        )
    }
}
const styles = StyleSheet.create({
    scrollViewStyle: {
        backgroundColor: '#e8e8e8',
    }
});
